import request from '@/utils/request'

// 用电单位列表
export const getCompanyListApi = (params) =>
  request.get('/ecm-microservice-biz/ecm/basic/energyType/getCompanyList', { params })

// 查询分页设备台账管理
export const getPageListApi = (params) =>
  request.get('/ecm-microservice-biz/ecm/device/ledger/management/page', { params })

// 查询维保记录列表
export const getMaintenanceListApi = (params) =>
  request.get('/ecm-microservice-biz/ecm/device/ledger/management/maintenance/page', { params })

// 更新添加维保记录
export const addMaintenanceApi = (data) =>
  request.post('/ecm-microservice-biz/ecm/device/ledger/management/maintenance/add', data,
    { headers: { 'Content-Type': 'multipart/form-data' } })
